package com.tianma.upload.uploadjartest.proxy.staticProxy;



/**
 * @author lgc
 * @createDate 2020/8/13 - 14:25
 */
public class Proxy implements Rent {
    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        host.rent();
    }
    public void lookHome() {
        System.out.println("中介带你看房子");
    }
    public void write() {
        System.out.println("中介和你签合同");
    }

}
